package com.geeksaga.dao.ibatis.oracle;

import java.util.List;


import org.springframework.dao.DataAccessException;

import com.geeksaga.dao.PostDao;
import com.geeksaga.dao.ibatis.BaseIBatisDao;
import com.geeksaga.domain.Post;

/**
 * @author newbie
 * @since 0.1
 */
public class PostDaoImpl extends BaseIBatisDao implements PostDao {

    /* (non-Javadoc)
     * @see com.geeksaga.dao.PostDao#findListByPost(com.geeksaga.domain.Post)
     */
    @SuppressWarnings("unchecked")
    public List<Post> findListByPost(Post post) throws DataAccessException {
        return (List<Post>) getSqlMapClientTemplate().queryForList("POST.findListByPost", post);
    }
}